package cn.fl.audit.service;

import java.util.List;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.audit.vo.AudReturnVisitVO;
import cn.fl.audit.vo.AudOpeLineVO;

/**
 * @Description: 信审回访表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IAudReturnVisitService {
	
	/**
	 * 预览担保人备注信息
	 * @param projectId
	 * @return
	 * @throws BaseException
	 */
	//public String previewGuarantorRem(Long projectId)throws BaseException;
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public AudReturnVisitVO selectById(Long id)throws BaseException;
	
	/**
	 * 根据项目ID获取回访数据
	 * @param projectId
	 * @return
	 * @throws BaseException
	 */
	public AudReturnVisitVO selectByProjectIdAndProIntId(Long projectId)throws BaseException;
	
	/**
	 * 根据项目ID获取回访数据(授信)
	 * @param projectId
	 * @return
	 * @throws BaseException
	 */
	public AudReturnVisitVO selectByProjectId(Long projectId)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(AudReturnVisitVO entity) throws BaseException;
    
    
    /**
	 * 新增回访运营路线
	 * @param entity
	 * @return
	 */
    public Long addOperateLine(AudOpeLineVO entity) throws BaseException;
    
    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(AudReturnVisitVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    
    /**
     * 查询下拉框数据-回访人员类型
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPersonnelTypeCdList()throws BaseException;
    
    /**
     * 查询下拉框数据-是否
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchYesOrNoTypeCdList()throws BaseException;
    
    /**
     * 查询下拉框数据-回访信息确认(一致/不一致)
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchReturnVisitConfirmCdList()throws BaseException;
    
    /**
     * 查询下拉框数据-提车情况
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPickCardCdList()throws BaseException;
    
    /**
     * 查询下拉框数据-上牌情况
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchStatusCdList()throws BaseException;
    
    /**
     * 查询下拉框数据-与承租人关系
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchRelationshipCdList()throws BaseException;
    /**
     * 下拉-收入方式
     * @return
     * @throws BaseException
     */
//    public List<KeyValueVO> searchProfitCdList()throws BaseException;
    /**
     * 下拉-收入方式
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchProfitCdList(String sysCd, String orgCd)throws BaseException;
    /**
     * 下拉-运营年限
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchBizExpList()throws BaseException;
    /**
     * 货物来源
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchGoodsResList()throws BaseException;
    /**
     * 主货物结算方式
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchGdsStlWayCdList()throws BaseException;
    /**
     * 司机情况
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchDriverList()throws BaseException;
    /**
     * 第二还款来源
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchSecondPayResCdList()throws BaseException;
    /**
     * 代扣卡
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchAgentCardStateCdList()throws BaseException;
    /**
     * 设备位置
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchEqmtAddressCdList()throws BaseException;
    /**
     * 车辆上户
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchVehiclesDoorCdList()throws BaseException;
    /**
     * 动力方式
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> searchPowerCdList()throws BaseException;
	/*
	 * 线路类型
	 */
	public List<KeyValueVO> searchCircuitTypeList()throws BaseException;
	/*
	 * 装卸方式
	 */
	public List<KeyValueVO> searchHanglingModeList()throws BaseException;
	/*
	 * 查询运营路线
	 */
	public List<AudOpeLineVO> selectByAudOpeLine(Long id)throws BaseException;
	/*
	 * 修改运营路线
	 */
	public Long updateOperateLine(AudOpeLineVO audOpeLineVO2);
	/*
	 * 变更回访状态
	 */
	public void modifvisitStatus(AudReturnVisitVO audReturnVisitVO)throws BaseException;
	
	/**
	 * 新增 只新增AudReturnVisit 不参与其他逻辑
	 * @param entity
	 * @return
	 */
    public Long addOnlyAudReturnVisit(AudReturnVisitVO entity) throws BaseException;
	
}
